<include file="Layout/header" />
<body>
<div class="breadcrumbs" id="breadcrumbs"> 
  <script type="text/javascript">
							try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
						</script>
  <ul class="breadcrumb">
    <li> <i class="icon-home home-icon"></i> <a href="{:U('Admin/Index/welcome')}">首页</a> </li>
    <li class="active">彩票赔率</li>
  </ul>
</div>
<div class="page-content">
  <div class="page-header">
    <h1> 彩票管理 <small> <i class="icon-double-angle-right"></i> 彩票赔率 </small> </h1>
  </div>
  <div class="">
    <div class="tabbable">
   <!--  <ul class="nav nav-tabs" id="myTab" style="margin-bottom: 5px;border: none;">
           <li>
           <a <if condition="$pan eq 'A'">class="btn btn-primary"<else /> class="btn btn-info"</if> href="{:U('Admin/Lottryodds/index',array('pan'=>'A'))}">A盘</a>
           </li>
           <li>
           <a <if condition="$pan eq 'C'">class="btn btn-primary"<else /> class="btn btn-info"</if> href="{:U('Admin/Lottryodds/index',array('pan'=>'C'))}">C盘</a>
           </li>
      </ul> -->
      <ul class="nav nav-tabs" id="myTab">
        <foreach name="lottry_array" item="val" key="key">
          <li>
            <if condition="$key eq $c_id"> <a class="btn btn-primary" href="{:U('Admin/Lottryodds/index',array('pan'=>$pan,'c_id'=>$key))}">{$val.text}</a>
              <else />
              <a class="btn btn-info" href="{:U('Admin/Lottryodds/index',array('pan'=>$pan,'c_id'=>$key))}">{$val.text}</a> </if>
          </li>
        </foreach>
      </ul>
      <div class="tab-content">
        <ul class="nav nav-tabs" id="">
          <foreach name="lottry_array_c.list" item="v" key="k">
           <if condition="($c_id eq 12) AND (($k eq 1) OR ($k eq 7) OR ($k eq 12))">
             <if condition="$k eq $w_id">
              <li class="active"> <a href="{:U('Admin/Lottryodds/index',array('pan'=>$pan,'c_id'=>$c_id,'w_id'=>$k))}">{$v.text}</a> </li>
              <else />
              <li> <a href="{:U('Admin/Lottryodds/index',array('pan'=>$pan,'c_id'=>$c_id,'w_id'=>$k))}">{$v.text}</a> </li>
            </if>
           <else />
            <if condition="$k eq $w_id">
              <li class="active"> <a href="{:U('Admin/Lottryodds/index',array('pan'=>$pan,'c_id'=>$c_id,'w_id'=>$k))}">{$v}</a> </li>
              <else />
              <li> <a href="{:U('Admin/Lottryodds/index',array('pan'=>$pan,'c_id'=>$c_id,'w_id'=>$k))}">{$v}</a> </li>
            </if>
           </if> 
          </foreach>
        </ul>
        <div class="tab-content">
          <div class="" style="padding-bottom:10px;">
           <if condition="$c_id eq 12">
            
            <if condition="$w_id eq 1">
            <foreach name="lottry_array_c.list.1.c_list" item="cv" key="ck">
             <if condition="$ck eq $cl_id">
                <a href="{:U('Admin/Lottryodds/index',array('pan'=>$pan,'c_id'=>$c_id,'w_id'=>1,'cl_id'=>$ck))}" class="btn btn-sm btn-primary">{$cv}</a>
                <else />
                <a href="{:U('Admin/Lottryodds/index',array('pan'=>$pan,'c_id'=>$c_id,'w_id'=>1,'cl_id'=>$ck))}" class="btn btn-sm">{$cv}</a>
                </if>
            </foreach>
            </if>
            <if condition="$w_id eq 7">
            <foreach name="lottry_array_c.list.7.c_list" item="cv" key="ck">
             <if condition="$ck eq $cl_id">
                <a href="{:U('Admin/Lottryodds/index',array('pan'=>$pan,'c_id'=>$c_id,'w_id'=>7,'cl_id'=>$ck))}" class="btn btn-sm btn-primary">{$cv}</a>
                <else />
                <a href="{:U('Admin/Lottryodds/index',array('pan'=>$pan,'c_id'=>$c_id,'w_id'=>7,'cl_id'=>$ck))}" class="btn btn-sm">{$cv}</a>
                </if>
            </foreach>
            </if>
            <if condition="$w_id eq 12">
              <foreach name="lottry_array_c.list.12.c_list" item="cv" key="ck">
                <if condition="$ck eq $cl_id">
                <a href="{:U('Admin/Lottryodds/index',array('pan'=>$pan,'c_id'=>$c_id,'w_id'=>12,'cl_id'=>$ck))}" class="btn btn-sm btn-primary">{$cv}</a>
                <else />
                <a href="{:U('Admin/Lottryodds/index',array('pan'=>$pan,'c_id'=>$c_id,'w_id'=>12,'cl_id'=>$ck))}" class="btn btn-sm">{$cv}</a>
                </if>
              </foreach>
            </if>
            </if> 
          </div>
        <div class="table-responsive dataTables_wrapper"> 
          <!-- <include file="Layout/{$tpl}" />-->
          <form class="form-horizontal" action="{:U('Admin/Lottryodds/change_odds')}" id="validation-form" method="post" enctype="multipart/form-data">
            <input type="hidden" value="{$c_id}" name="c_id">
            <input type="hidden" value="{$w_id}" name="w_id">
            <input type="hidden" value="{$cl_id}" name="cl_id">
            <input type="hidden" value="{$pan}" name="pan">
            <include file="$tpl" />
          </form>
        </div>
        
        <!-- /.table-responsive --> 
      </div>
    </div>
  </div>
  </div>
  <!-- /.table-responsive --> 
</div>
<div >{$page}</div>
</div>
</div>
</body>
</html>